﻿
#ifndef __CGiftMgr_h__
#define __CGiftMgr_h__

#include "commclass.h"

typedef CTArray<unsigned int, ACT_BONUS_TYPE_MAX> T_PENDING_ACT;

class CPlayerDetailInfo;
class CPlayerOnlineData;
class CDropItem;
class CDropItemData;
class CUserStorage;
class CGiftMgr
{
public:
    CGiftMgr()
    {

    }

    int GetPendingAct (CPlayerBaseInfo & stPlayerBaseInfo, CPlayerDetailInfo& stPlayerDetail, T_PENDING_ACT & stPendingAct);

    int CheckNotify (CPlayerBaseInfo & stPlayerBaseInfo, CPlayerDetailInfo& stPlayerDetail);

    int GetPendingSpace (CPlayerBaseInfo & stPlayerBaseInfo, CPlayerDetailInfo& stPlayerDetail, unsigned int uiGiftId, int & iSpace);

    int FetchPendingItem (CPlayerBaseInfo & stPlayerBaseInfo, CPlayerDetailInfo& stPlayerDetail, unsigned int uiGiftId, CDropItem & stGainItem);

    int AddBonusGift (CPlayerDetailInfo & stPlayerDetail, CUserStorage & stUserStorage, CDropItemData & stDropItemData);
};


#endif // __CGiftMgr_h__

